package com.tfr.webflux.exceptions;

import lombok.Data;

/**
 * @description:
 * @author: rain
 * @date: Created in 2021/12/8 22:01
 * @version:
 * @modified By:
 */
@Data
public class CheckException extends RuntimeException {

  private String name;
  private String value;

  public CheckException() {
    super();
  }

  public CheckException(String message) {
    super(message);
  }

  public CheckException(String message, Throwable cause) {
    super(message, cause);
  }

  public CheckException(Throwable cause) {
    super(cause);
  }

  protected CheckException(
      String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
    super(message, cause, enableSuppression, writableStackTrace);
  }

  public CheckException(String name, String value) {
    this.name = name;
    this.value = value;
  }
}
